<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
  <meta name="description" content="">
  <meta name="author" content="ThemeBucket">
  <link rel="shortcut icon" href="#" type="../image/png">
  <title>欢迎模版页</title>
  <!--data table-->

  <script src="../js/jquery-3.1.1.min.js"></script>
  <script src="../js/jquery.qrcode.min.js"></script>
  <link href="../css/style.css" rel="stylesheet">
  <link href="../css/style-responsive.css" rel="stylesheet">
  <script src="../js/html5shiv.js"></script>
  <script src="../js/respond.min.js"></script>  
<script type="text/javascript">

	
	$(document).ready(function(){
		var str = toUtf8("吴元伟"); 
		$("#code").qrcode({ 
		    render: "table", //table方式 
		    width: 200, //宽度 
		    height:200, //高度 
		    text: "http://192.168.0.116:8080/bukeManage/phone/test2.do" ,//任意内容 
		    colorDark:"#efb73e",
		    colorLight: "#ffffff"
		}); 
		
	});
	function toUtf8(str) {    
	    var out, i, len, c;    
	    out = "";    
	    len = str.length;    
	    for(i = 0; i < len; i++) {    
	        c = str.charCodeAt(i);    
	        if ((c >= 0x0001) && (c <= 0x007F)) {    
	            out += str.charAt(i);    
	        } else if (c > 0x07FF) {    
	            out += String.fromCharCode(0xE0 | ((c >> 12) & 0x0F));    
	            out += String.fromCharCode(0x80 | ((c >>  6) & 0x3F));    
	            out += String.fromCharCode(0x80 | ((c >>  0) & 0x3F));    
	        } else {    
	            out += String.fromCharCode(0xC0 | ((c >>  6) & 0x1F));    
	            out += String.fromCharCode(0x80 | ((c >>  0) & 0x3F));    
	        }    
	    }    
	    return out;    
	} 
</script>
</head>
<body class="sticky-header">
<div class="main-content">
	<div class="wrapper">
		<div class="row"> 
<!-- 开始 -->

				<div class="col-md-4">
                    <div class="row">
                        <div class="col-md-12">
                            <div class="panel">
                                <div class="panel-body">
                                    <div class="profile-pic text-center">
                                        <div id="code">
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
           			</div>


                </div>		
		
		
		
<!-- 结束 -->		
		</div>
	
	
	</div>


</div>



</body>
<script src="../js/jquery-ui-1.9.2.custom.min.js"></script>
<script src="../js/jquery-migrate-1.2.1.min.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/modernizr.min.js"></script>
<script src="../js/jquery.nicescroll.js"></script>

<!--Sparkline Chart-->
<script src="../js/sparkline/jquery.sparkline.js"></script>
<script src="../js/sparkline/sparkline-init.js"></script>
<!--common scripts for all pages-->
<script src="../js/scripts.js"></script>
</html>
